package demo2;

/**
 * 工厂方法.
 *
 * @author GongXincheng
 * @since 2019-09-24 10:11
 */
public class Main {

    public static void main(String[] args) {

//        BaseDbFactory factory = new OracleFactory();
        BaseDbFactory factory = new MysqlFactory();

        BaseUser user = factory.createUser();

        System.out.println(user.getUser(1));
    }

}
